package com.jhgsys.internal.base.service;

import com.jhgsys.internal.base.entity.BaseProjectUser;
import com.jhgsys.internal.common.entity.QueryRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 项目用户 Service接口
 *
 * @author admin
 * @date 2024-07-29 15:56:15
 */
public interface IBaseProjectUserService extends IService<BaseProjectUser> {
    /**
     * 查询（分页）
     * @author admin
     * @date 2024-07-29 15:56:15
     * @param request QueryRequest
     * @param baseProjectUser baseProjectUser
     * @return IPage<BaseProjectUser>
     */
    IPage<BaseProjectUser> findBaseProjectUsers(QueryRequest request, BaseProjectUser baseProjectUser);

    /**
     * 查询（所有）
     * @author admin
     * @date 2024-07-29 15:56:15
     * @param baseProjectUser baseProjectUser
     * @return List<BaseProjectUser>
     */
    List<BaseProjectUser> findBaseProjectUsers(BaseProjectUser baseProjectUser);

    /**
    * 根据ID查询
    * @author admin
    * @date 2024-07-29 15:56:15
    * @param id
    * @return BaseProjectUser
    */
    BaseProjectUser findBaseProjectUserById(Integer id);

    /**
     * 新增
     * @author admin
     * @date 2024-07-29 15:56:15
     * @param baseProjectUser baseProjectUser
     */
    void createBaseProjectUser(BaseProjectUser baseProjectUser);

    /**
     * 修改
     * @author admin
     * @date 2024-07-29 15:56:15
     * @param baseProjectUser baseProjectUser
     */
    void updateBaseProjectUser(BaseProjectUser baseProjectUser);

    /**
     * 逻辑删除
     * @author admin
     * @date 2024-07-29 15:56:15
     * @param baseProjectUser baseProjectUser
     * @param baseProjectUserIds baseProjectUserIds
     */
    void deleteBaseProjectUser(BaseProjectUser baseProjectUser,String baseProjectUserIds);

    /**
    * 物理删除
    * @author admin
    * @date 2024-07-29 15:56:15
    * @param baseProjectUserIds baseProjectUserIds
    */
    void physicallyDeleteBaseProjectUser(String baseProjectUserIds);

    /**
    * 根据项目id删除
    * @author admin
    * @date 2024-07-29 15:56:15
    * @param projectIds
    */
    void deleteByProjectIds(String projectIds);
}
